#include <iostream>
#include <unistd.h>
#include <sys/types.h>
#include <string>
#include <signal.h>
#include <stdlib.h>
using namespace std;

static void Usage(string proc)
{
    cout << "Usage\r\n\t" << proc << "signumber processid" << endl;
}
// ./mykill 3 pid
int main(int argc,char* argv[])
{
    if(argc != 3)
    {
        Usage(argv[0]);
        exit(1);
    }
    int signumber = atoi(argv[1]);
    int procid = atoi(argv[2]);
    kill(procid,signumber);

    return 0;
}